package cn.imnu.legalaid.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDateTime;
import lombok.Data;

/**
 * 成功案例表
 * @TableName success_cases
 */
@TableName(value ="success_cases")
@Data
public class SuccessCases {
    /**
     * 成功案例表id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 标题
     */
    @TableField(value = "title")
    private String title;

    /**
     * 案例类型
     */
    @TableField(value = "category")
    private Object category;

    /**
     * 描述
     */
    @TableField(value = "description")
    private String description;

    /**
     * 结果
     */
    @TableField(value = "outcome")
    private String outcome;

    /**
     * 持续时间
     */
    @TableField(value = "duration_days")
    private Integer duration_days;

    /**
     * 律师id
     */
    @TableField(value = "lawyer_id")
    private Integer lawyer_id;

    /**
     * 用户反馈
     */
    @TableField(value = "client_feedback")
    private String client_feedback;

    /**
     * 评分
     */
    @TableField(value = "rating")
    private Integer rating;

    /**
     * 是否公开
     */
    @TableField(value = "is_public")
    private Integer is_public;

    /**
     * 创建时间
     */
    @TableField(value = "created_at")
    private LocalDateTime created_at;

    /**
     * 更新时间
     */
    @TableField(value = "updated_at")
    private LocalDateTime updated_at;
}